package ai.people.netmon.framework.domain.graph.tags;

import ai.people.netmon.framework.domain.graph.BaseTag;
import ai.people.netmon.framework.domain.archives.vo.ArchivesVO;
import com.alibaba.fastjson.PropertyNamingStrategy;
import com.alibaba.fastjson.annotation.JSONType;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 银行账户tag
 *
 * @author zhenglin
 * @date 2022/4/25
 */
@Data
@NoArgsConstructor
@JSONType(naming = PropertyNamingStrategy.SnakeCase)
public class BankAccountTag extends BaseTag {
    /**
     * 账户
     */
    @NotBlank(message = "银行账户不能为空")
    private String account;

    public BankAccountTag(ArchivesVO.Bank bankAccount) {
        this.account = bankAccount.getBankAccount();
    }
}
